<%@ page import="psl.UserSession" %>
<%@ page import="psl.ItemBill" %>
<%--
  Created by IntelliJ IDEA.
  User: phiteshkumar
  Date: Mar 2, 2007
  Time: 5:01:16 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="TagXML" prefix="Search" %>
<%
    UserSession moUserSession = (UserSession) session.getAttribute ("UserSession");
    ItemBill moItemBill = (ItemBill) moUserSession.getCurrentPage ();
%>
<html>
<head>
    <title>Item Bill</title>
    <link href='Stylesheet.css' type='text/css' rel='stylesheet'>
    <script type='text/javascript' src='ROController.js' language='JavaScript'></script>
</head>
<body onkeydown="getEventCode(event)">
<form name='DataForm' onsubmit='return false;'>
<input type='hidden' name='action_fld'>
    <table border="0" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2">
                <%@ include file="ROCommon/Head.jsp" %>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <table border="0" width="100%">
                    <tr height="22">
<%--
                        <td bgcolor="salmon" align="left"></td>
--%>
                        <td bgcolor="salmon" align="center"><font color='black' size='3' style='font-weight:bold;'>List Of Item</font></td>
                        <td width="40" bgcolor="black" align="right"><a href="javascript:performHome()"><font color='darkseagreen' size='2' style=font-weight:bold;>Home</font></a></td>
<%                      if(moUserSession.msLogin!=null)
                        {
%>
                        <td width=90 bgcolor="black" align="right"><a href="javascript:openPage('userAccount')"><font color='gold' size='2' style=font-weight:bold;>My Account</font></a></td>
                        <td  width=40 bgcolor="black" align="right"><a href="javascript:logout()"><font color='darkseagreen' size='2' style=font-weight:bold;>LogOut</font></a></td>
<%
                        }
%>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td border=0 height="100%" align="center" valign="top" >
                <table border="0" width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width =100% valign="top" align="center">
                            <table width=100% border=0 cellpadding=0 cellspacing="0">
                                <tr>
                                    <td bgcolor="silver" colspan="2" valign="top">
                                        <div style="border-top:white 2px solid;">
                                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td bgcolor="silver"   height="25" align="left" width=10% >
                                                        <font style="font-size:17;color:black;">Item Bill</font>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                </tr>
                                <tr>
                                    <td width=100% colspan="2" bgcolor="beige" height="150" valign="top">
                                         <table cellspacing="0" width=100% cellpadding="0" border="0">
                                             <tr>
                                                 <td valign="top">
                                                     <Search:ROTag
                                                         ROType="ItemBill"
                                                         SQLQuery="Select * From product_detail_web"
                                                         ROPage='<%=moItemBill%>'
                                                         ROSession='<%=moUserSession%>'>
                                                     </Search:ROTag>
                                                 </td>
                                             </tr>
                                         </table>
                                     </td>
                                 </tr>
                                 <tr height="40" valign="middle">
                                     <td>
                                         &nbsp;
                                         <button style='height:23px;width:50px; background-color:yellowgreen' onMouseOver="className='activeImageButton';"
                                           onMouseOut="className='imageButton';" class='imageButton' id='start'
                                           onclick="performStart();" accesskey='S' type='button'>
                                             <u>S</u>tart
                                         </button>
                                         &nbsp;
                                         <button style='height:23px;width:70px;' onMouseOver="className='activeImageButton';"
                                           onMouseOut="className='imageButton';" class='imageButton' id='previous'
                                           onclick="performPrevious();" accesskey='P' type='button'>
                                             <u>P</u>revious
                                         </button>
                                         &nbsp;
                                         <button style='height:23px;width:50px;' onMouseOver="className='activeImageButton';"
                                           onMouseOut="className='imageButton';" class='imageButton' id='next'
                                           onclick="performNext();" accesskey='N' type='button'>
                                             <u>N</u>ext
                                         </button>
                                         &nbsp;
                                         <button style='height:23px;width:65px; background-color:yellowgreen' onMouseOver="className='activeImageButton';"
                                                   onMouseOut="className='imageButton';" class='imageButton' id='back'
                                                   onclick="performBack();" accesskey='B' type='button'>
                                               <u>B</u>ack
                                         </button>
                                     </td>
                                     <td align="right">
                                         &nbsp;
                                         <button style='height:23px;width:65px;' onMouseOver="className='activeImageButton';"
                                                   onMouseOut="className='imageButton';" class='imageButton' disabled id='update'
                                                   onclick="performUpdate();" accesskey='U' type='button'>
                                               <u>U</u>pdate
                                         </button>
                                         &nbsp;
                                         <button style='height:23px;width:65px;' onMouseOver="className='activeImageButton';"
                                                   onMouseOut="className='imageButton';" class='imageButton' id='finish'
                                                   onclick="performFinish();" accesskey='F' type='button'>
                                               <u>F</u>inal Bill
                                         </button>
                                     </td>
                                 </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign=top>
                            <table width=100% border=0 cellpadding=0 cellspacing="0">
                                <tr>
                                    <td bgcolor="silver" height="25" align="left" width=10% ><font style="font-size:17;color:black;">Selcted Item</font></td>
                                </tr>
                                <tr>
                                    <td width=50% align="center">
                                        <table border="1" width="100%" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="center" width=30% height=205>
                                                    <div class='documentSection' id='DisplaySection' style='display:block;'>
                                                        <img  src='img/image.gif' border=0 id='DisplaySectionImage'/>
                                                    </div>
                                                </td>
                                                <td bgcolor="#ffe7b1" valign="middle" width=70% align="center">
                                                    Discription  of Item
                                                    <br>
                                                    !!!!!!!!!!!!!!Under Construction!!!!!!!!!!!!
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
<%
  if(moUserSession.msError!=null)
  {
%>
<div class='message_body'>
    <table width=100% border=0 cellspacing=1 cellpadding=0>
        <tr>
            <td width=10>
               <img src='img/feedback-error.gif'>&nbsp;
            </td>
            <td><b><%=moUserSession.msError%></b></td>
        </tr>
    </table>
</div>
<%
  }
%>
</form>
</body>
</html>